package com.jdbcTemplate;

import com.jdbcTemplate.mapper.TAaService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author CKC
 * @DateTime 2021/12/11 20:31
 */
@SpringBootApplication
@EnableTransactionManagement
@EnableAspectJAutoProxy(exposeProxy = true)
public class ApplicationJDBCTemplate {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ApplicationJDBCTemplate.class, args);
        TAaService bean = run.getBean(TAaService.class);
        long l = System.currentTimeMillis();
        //bean.insert();
        System.out.println((System.currentTimeMillis() - l) / 1000);

    }
}
